package com.yc.bean;

import org.springframework.jmx.export.annotation.ManagedAttribute;
import org.springframework.jmx.export.annotation.ManagedOperation;
import org.springframework.jmx.export.annotation.ManagedOperationParameter;
import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Component;

/**
 * @author zwei
 * @create 2024-08-07 15:33
 */
@ManagedResource(objectName = "a:type=Account")
@Component
public class Account {
    private Integer accountid;
    private double balance;
    private String email;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @ManagedAttribute
    public Integer getAccountid() {
        return accountid;
    }

    @ManagedOperation
    @ManagedOperationParameter(name = "accountid", description = "账户编号")
    public void setAccountid(Integer accountid) {
        this.accountid = accountid;
    }

    @ManagedAttribute
    public double getBalance() {
        return balance;
    }

    @ManagedOperationParameter(name = "accountid", description = "账户编号")
    public void setBalance(double balance) {
        this.balance = balance;
    }


}
